home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
dbase
/
dscar1.zip
/
DSCAR.DOC
< prev
next >
Wrap
Text File
|
1986-07-02
|
37KB
|
1,201 lines
d S C A R
dBASE Source Code Analyzer & Reporter
by
Ryan Katri
Version 1.0
July 1, 1986
Ryan Katri
2575 Drake Hill Road
Fortuna, CA 95540
Voice: (707) 725-5559
Modem: (707) 725-9612 (7pm-3pm)
Copyright (c) 1986 by Ryan Katri
All Right Reserved.
dSCAR User's Guide
Table of Contents
Purpose . . . . . . . . . . . . . . . . . . . .3
System Requirements . . . . . . . . . . . . . .3
Read This! . . . . . . . . . . . . . . . . . .3
Installation . . . . . . . . . . . . . . . . .5
Invoking dSCAR . . . . . . . . . . . . . . . .6
The Menu . . . . . . . . . . . . . . . . . . .7
Quitting dSCAR. . . . . . . . . . . . . . . . .8
Diagram Program Flow . . . . . . . . . . . . .8
Control Only . . . . . . . . . . . . . . . . .9
Errors Only . . . . . . . . . . . . . . . . . .9
Line Numbering . . . . . . . . . . . . . . . .9
Modules . . . . . . . . . . . . . . . . . . . .10
Variables Cross-Reference . . . . . . . . . . .10
Output . . . . . . . . . . . . . . . . . . . .11
GO! . . . . . . . . . . . . . . . . . . . . . .12
Additional Modules . . . . . . . . . . . . . .12
Batch Mode . . . . . . . . . . . . . . . . . .13
Limitations . . . . . . . . . . . . . . . . . .14
Appendix A: Reporting Problems . . . . . . . .15
Appendix B: Error Messages . . . . . . . . . .16
Appendix C: Future Enhancements . . . . . . . .17
Appendix D: About Me & My Program & My Help . .18
Appendix E: Disclaimer. . . . . . . . . . . . .19
Page 3
-Purpose-
---------
To put it bluntly, dSCAR is a tool for dBASE III and dBASE III
Plus that performs the following functions:
-- Structured formatting of dBASE code (indentation).
-- Flow diagrams to highlight control statements.
-- Cross-referencing of variables and field names.
-- Display structural errors in code.
-- Line numbering of source code.
-- Selectable options to get the report you want.
-- Ability to send any reports to screen, printer or disk.
-- Menu-driven or command-driven.
-System Requirements-
---------------------
dSCAR should work on any IBM PC/XT or compatible machine that
meets the requirements of running dBASE III or dBASE III Plus.
It was developed under PC-Dos 3.1, but should work on most lower
versions of Dos.
dSCAR can also process dBASE II source code. The only drawback
is if you use a dBASE III reserved word for a variable or field
name. If this is done, the variable or field name is NOT
included in the variables cross-reference. You may also
experience this problem using dBASE III if you have used any
dBASE III Plus reserved words as variables.
-READ THIS!-
------------
This is a full-fledged version of dSCAR. The only drawback to it
is that it displays a title page every time it is brought up.
This screen can by by-passed by pressing <return>.
If <return> is not pressed, dSCAR will continue execution after a
30-second wait, thus allowing dSCAR to be run in batch files with
un-attended operation.
Optionally, you can press the letter key 'I' to bring up an
invoice for dSCAR that can be printed by hitting Shift+PrtScr.
Page 4
You can register your copy of dSCAR by sending $20 - $100,000 (or
more if you have it!) to this name and address:
Ryan Katri
2575 Drake Hill Road
Fortuna, CA 95540
If you do register you will receive the latest version of dSCAR
(are there going to be any more versions?) without the title page
garbage. In this form, dSCAR can be instantly fired up and ready
to go to work on your dBASE code!
When you register, be sure to include your mailing address and
phone number. I would also appreciate any comments about dSCAR:
suggestions for improvements, how you are using it, where you got
it, etc.
The registered version will be sent to you through the mail or
you can elect to download it from my Bulletin Board System:
M.I.T. Colossus
(707) 725-9612
7pm-3pm, 7 days a week.
300/1200/2400 Baud
The latest demo version can also be found on my BBS.
Page 5
-Installation-
--------------
To configure dSCAR for your particular system setup, run dSCAR
using 'C' as an argument on the command line, like this:
DSCAR C
dSCAR immediately comes up with the installation questions to
customize it for both your needs and your hardware (especially
your printer). Each question is detailed below under its
appropriate heading. Note that defaults are displayed except for
certain questions. All yes/no questions default to 'no'.
Your basic cursor editing keys are in effect. <Insert>, <Delete>,
and arrow keys all work like you would expect.
NUMBER OF SPACES FOR INDENTATION: This is the indentation
increment you want to use below control statements, such as
IF, DO WHILE, DO CASE, etc. Shown below are two pieces of the
same code, the first with an indentation of 3 and the second
with an indentation of 5.
store 1 to count This is code produced
do while count < 100 with an indentation
if count = 50 then of three (3).
? 'Halfway there!'
endif
x = x + 1
enddo
store 1 to count This is with indentation
do while count < 100 five (5).
if count = 50 then
? 'Halfway there!'
endif
x = x + 1
enddo
STRIP DRIVE/PATH FROM FILENAMES: This options defaults to 'no',
use the drive and path specified. Regardless of what this
option is set to, dSCAR always recognizes and uses any path
appended to the main file you enter at start-up.
This option is especially important when the option Modules
(detailed later) is turned on. See the Modules sectio